package com.huike.clues.mapper;

import com.huike.common.core.domain.entity.SysDept;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;
import org.apache.ibatis.annotations.Param;

import java.util.List;
@Mapper
public interface SysDeptMapper {

    void insertDept(SysDept sysDept);

    Integer countDept();

    void updateDept(SysDept sysDept);

    List<SysDept> listDept(SysDept sysDept);

    List<SysDept> listDeptByparentId(Long deptId);
    SysDept findDeptByDeptId(Long deptId);

    int deleteDeptByDeptId(Long deptId);

    List<SysDept> treeSelect(SysDept dept);







    List<SysDept> selectByIds(@Param("deptIds") List<Integer> deptIds);

    List<SysDept> selectDeptList(SysDept dept);

    SysDept selectById(Long deptId);
}
